Skip to content

refactor(api): replace phase strings with conditions across CRDs - #71

Merged
bittermandel merged 3 commits into
mainfrom
jg/replace-phase-with-conditions
May 1, 2026
Merged

bittermandel merged 3 commits into
mainfrom
jg/replace-phase-with-conditions

Conversation

@bittermandel

Copy link
Copy Markdown
Contributor

Replaces the static phase string on every CRD with standard Kubernetes conditions (Available, Progressing, plus per-CRD lifecycle conditions).

Status is now derived from the observed state of child Pods and Deployments rather than "we issued a Create," and root-cause errors from kubelet (missing secret keys, image pull failures, crashloops) bubble up directly into the conditions so users can debug from kubectl describe alone. Adds observedGeneration everywhere so kubectl wait and kstatus-based tooling work out of the box.

These files were left out of the previous commit and broke compilation
on CI — the api/v1alpha1 types no longer expose Phase/SetPhase, but the
old utils/status.go still referenced them.
CI lint flagged 10 lines in utils/* exceeding the 120-char limit (lll
excludes api/* and internal/* but not utils/*) and one ineffectual
assignment in branch_controller.go computeReason that every switch
branch immediately overwrote.
@bittermandel
bittermandel merged commit 5547deb into main May 1, 2026
5 checks passed
@bittermandel
bittermandel deleted the jg/replace-phase-with-conditions branch May 1, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant